<template>
  <el-button :loading="state.loading">
    <slot />
  </el-button>
</template>

<script setup>
import { ref, computed, watchEffect, reactive } from "vue";
// import { useSlots } from "vue";
const props = defineProps({
  loading: Boolean,
});

// const slots = useSlots();

const state = reactive({
  loading: false,
});
</script>

<style lang="scss" scoped></style>
